Leadtools.Forms.Auto Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RecognizePage(RasterImage,Int32,Generic List) Method
See Also 
Leadtools.Forms.Auto Namespace > AutoFormsEngine Class > RecognizePage Method : RecognizePage(RasterImage,Int32,Generic List) Method



form
RasterImage that contains the image of the unknown page.
pageNumber
The unknown page number in the form.
categories
List of Master Forms categories to use in comaprison, pass null or empty to use all Master Forms in the repository.
form
RasterImage that contains the image of the unknown page.
pageNumber
The unknown page number in the form.
categories
List of Master Forms categories to use in comaprison, pass null or empty to use all Master Forms in the repository.
Recognize the type of the unknown page.

Syntax

Visual Basic (Declaration) 
Overloads Public Function RecognizePage( _
   ByVal form As RasterImage, _
   ByVal pageNumber As Integer, _
   ByVal categories As List(Of IMasterFormsCategory) _
) As AutoFormsRecognizePageResult
Visual Basic (Usage)Copy Code
Dim instance As AutoFormsEngine
Dim form As RasterImage
Dim pageNumber As Integer
Dim categories As List(Of IMasterFormsCategory)
Dim value As AutoFormsRecognizePageResult
 
value = instance.RecognizePage(form, pageNumber, categories)
C++/CLI 
public:
AutoFormsRecognizePageResult^ RecognizePage( 
   RasterImage form,
   int pageNumber,
   List<IMasterFormsCategory>^ categories
) 

Parameters

form
RasterImage that contains the image of the unknown page.
pageNumber
The unknown page number in the form.
categories
List of Master Forms categories to use in comaprison, pass null or empty to use all Master Forms in the repository.

Return Value

The result of the recognition will have the result of the Master Form Page with maximum confidence. If the confidence is less than MinimumConfidenceKnownForm it will return null, i.e. the form type is unknown and cannot be recognized.

Example

Remarks

This method compares the unknown page with all Master Forms pages in the repository and returns the Master Form and the number of the page in that Master Form with maximum confidence.

The recognition of the page will stop comparing the form with other Master Forms either when the confidence of the recognition result is greater or equal to MinimumConfidenceRecognized or when the the Master Forms have all been compared.

The result of the recognition will have the the result of the Master Form Page with maximum confidence. If the confidence is less than MinimumConfidenceKnownForm it will return null, i.e. the page type is unknown and cannot be recognized.

This method is useful when you have an unknown page and you want to recognize the Master Form to which the page belongs after which you may process the form and extract the data.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features